import './assets/main.css'
import { createPinia } from "pinia";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from '@/router'
import {createPersistedState} from 'pinia-persistedstate-plugin'
import { createApp } from 'vue'
import App from './App.vue'
import locale  from "element-plus/es/locale/lang/zh-cn"
import mitt from "mitt";



// 修改分页器默认文字
locale .el.pagination.total = "总共：" + `{total}` + "条"
locale .el.pagination.goto = "跳转至"
const pinia = createPinia();
const persist = createPersistedState();
const app=createApp(App);
pinia.use(persist)
app.use(router)
app.use(pinia)
app.use(ElementPlus,{ locale })
app.mount('#app')
const bus=mitt()
export default bus
